/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * DigitShopAdminStoreForm.java
 *
 * Created on 31-Mar-2011, 5:16:06 PM
 */

package digitshopadminapp;

import org.jdesktop.application.Action;

/**
 *
 * @author tsmyth
 */
public class DigitShopAdminStoreForm extends javax.swing.JDialog {

    /** Creates new form DigitShopAdminStoreForm */
    public DigitShopAdminStoreForm(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
        //getRootPane().setDefaultButton(closeButton);
    }

    @Action public void closeItemForm() {
        dispose();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        closeButton = new javax.swing.JButton();
        jButton_SaveItem = new javax.swing.JButton();
        jLabel_ItemForm = new javax.swing.JLabel();
        jLabel_storeID = new javax.swing.JLabel();
        jLabel_storeName = new javax.swing.JLabel();
        jLabel_storeAddress = new javax.swing.JLabel();
        jLabel_storeCity = new javax.swing.JLabel();
        jLabel_storeZIP = new javax.swing.JLabel();
        jLabel_storeEmail = new javax.swing.JLabel();
        jLabel_storePhone = new javax.swing.JLabel();
        jTextField_storeID = new javax.swing.JTextField();
        jTextField_storeName = new javax.swing.JTextField();
        jTextField_storeAddress = new javax.swing.JTextField();
        jTextField_storeCity = new javax.swing.JTextField();
        jTextField_storeZIP = new javax.swing.JTextField();
        jTextField_storeEmail = new javax.swing.JTextField();
        jTextField_storePhone = new javax.swing.JTextField();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setName("Form"); // NOI18N
        setResizable(false);

        javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(digitshopadminapp.DigitShopAdminApp.class).getContext().getActionMap(DigitShopAdminStoreForm.class, this);
        closeButton.setAction(actionMap.get("closeAboutBox")); // NOI18N
        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(digitshopadminapp.DigitShopAdminApp.class).getContext().getResourceMap(DigitShopAdminStoreForm.class);
        closeButton.setText(resourceMap.getString("closeButton.text")); // NOI18N
        closeButton.setName("closeButton"); // NOI18N

        jButton_SaveItem.setText(resourceMap.getString("jButton_SaveItem.text")); // NOI18N
        jButton_SaveItem.setName("jButton_SaveItem"); // NOI18N

        jLabel_ItemForm.setFont(resourceMap.getFont("jLabel_ItemForm.font")); // NOI18N
        jLabel_ItemForm.setText(resourceMap.getString("jLabel_ItemForm.text")); // NOI18N
        jLabel_ItemForm.setName("jLabel_ItemForm"); // NOI18N

        jLabel_storeID.setText(resourceMap.getString("jLabel_storeID.text")); // NOI18N
        jLabel_storeID.setName("jLabel_storeID"); // NOI18N
        jLabel_storeID.setPreferredSize(new java.awt.Dimension(20, 10));

        jLabel_storeName.setText(resourceMap.getString("jLabel_storeName.text")); // NOI18N
        jLabel_storeName.setName("jLabel_storeName"); // NOI18N

        jLabel_storeAddress.setText(resourceMap.getString("jLabel_storeAddress.text")); // NOI18N
        jLabel_storeAddress.setName("jLabel_storeAddress"); // NOI18N

        jLabel_storeCity.setText(resourceMap.getString("jLabel_storeCity.text")); // NOI18N
        jLabel_storeCity.setName("jLabel_storeCity"); // NOI18N

        jLabel_storeZIP.setText(resourceMap.getString("jLabel_storeZIP.text")); // NOI18N
        jLabel_storeZIP.setName("jLabel_storeZIP"); // NOI18N

        jLabel_storeEmail.setText(resourceMap.getString("jLabel_storeEmail.text")); // NOI18N
        jLabel_storeEmail.setName("jLabel_storeEmail"); // NOI18N

        jLabel_storePhone.setText(resourceMap.getString("jLabel_storePhone.text")); // NOI18N
        jLabel_storePhone.setName("jLabel_storePhone"); // NOI18N

        jTextField_storeID.setName("jTextField_storeID"); // NOI18N

        jTextField_storeName.setName("jTextField_storeName"); // NOI18N

        jTextField_storeAddress.setName("jTextField_storeAddress"); // NOI18N

        jTextField_storeCity.setName("jTextField_storeCity"); // NOI18N

        jTextField_storeZIP.setName("jTextField_storeZIP"); // NOI18N

        jTextField_storeEmail.setName("jTextField_storeEmail"); // NOI18N

        jTextField_storePhone.setName("jTextField_storePhone"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel_ItemForm)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel_storeName)
                            .addComponent(jLabel_storeAddress)
                            .addComponent(jLabel_storeCity)
                            .addComponent(jLabel_storeID, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(11, 11, 11)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                .addComponent(jTextField_storeCity, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(jLabel_storeZIP)
                                .addGap(36, 36, 36)
                                .addComponent(jTextField_storeZIP, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jTextField_storeAddress, javax.swing.GroupLayout.PREFERRED_SIZE, 329, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField_storeEmail, javax.swing.GroupLayout.PREFERRED_SIZE, 329, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField_storePhone, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField_storeName)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                .addComponent(jButton_SaveItem, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(closeButton, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jTextField_storeID, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(jLabel_storeEmail)
                    .addComponent(jLabel_storePhone))
                .addContainerGap(27, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel_ItemForm)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel_storeID, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField_storeID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel_storeName)
                            .addComponent(jTextField_storeName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel_storeAddress)
                            .addComponent(jTextField_storeAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel_storeCity)
                            .addComponent(jTextField_storeCity, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(114, 114, 114)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel_storeZIP)
                            .addComponent(jTextField_storeZIP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel_storeEmail)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel_storePhone))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jTextField_storeEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jTextField_storePhone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(closeButton, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton_SaveItem, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                DigitShopAdminStoreForm dialog = new DigitShopAdminStoreForm(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
                    @Override
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton closeButton;
    private javax.swing.JButton jButton_SaveItem;
    private javax.swing.JLabel jLabel_ItemForm;
    private javax.swing.JLabel jLabel_storeAddress;
    private javax.swing.JLabel jLabel_storeCity;
    private javax.swing.JLabel jLabel_storeEmail;
    private javax.swing.JLabel jLabel_storeID;
    private javax.swing.JLabel jLabel_storeName;
    private javax.swing.JLabel jLabel_storePhone;
    private javax.swing.JLabel jLabel_storeZIP;
    private javax.swing.JTextField jTextField_storeAddress;
    private javax.swing.JTextField jTextField_storeCity;
    private javax.swing.JTextField jTextField_storeEmail;
    private javax.swing.JTextField jTextField_storeID;
    private javax.swing.JTextField jTextField_storeName;
    private javax.swing.JTextField jTextField_storePhone;
    private javax.swing.JTextField jTextField_storeZIP;
    // End of variables declaration//GEN-END:variables

}
